<!DOCTYPE html>
<html>

<head>
	<title>test common.js</title>
	<link rel="stylesheet" href="../style/css/common.css" />
</head>

<body>
	<div class="contain">
		<div class="model test3"></div>
		<div class="model test4"></div>
	</div>
</body>
<script type="text/javascript" src="../style/js/common.js"></script>
<script type="text/javascript">
	let test3 = e('.test3'),
		testData = [{
				a: 1,
				b: 2
			},
			{
				a: 3,
				b: 4
			},
			{
				a: 5,
				b: 6
			}
		],
		$table = tablegen(testData, ["y", "x"]);
	test3.append($table);

	let test4 = e('.test4');
	ajax({
		url: 'http://127.0.0.1:8080',
		success: (reply) => {
			test4.innerText = "reply:" + reply;
		},
		error: (reply, status) => {
			test4.innerText = "reply:" + reply + "\nstatus:" + status;
		}
	});
</script>

</html>